package com.monas.client.jfree;

import java.text.SimpleDateFormat;
import java.util.Date;

public class ChartValue {
	private final Number xValue;
	private final Number yValue;

	public ChartValue(Number xValue, Number yValue) {
		this.xValue = xValue;
		this.yValue = yValue;
	}

	public Number getXValue() {
		return xValue;
	}

	public Number getYValue() {
		return yValue;
	}

	public String getXString() {
		Date date = new Date(((Long) xValue));
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return format.format(date);
	}
}
